{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "asa_mortality.ipynb",
      "provenance": [],
      "authorship_tag": "ABX9TyM+0SIx/0FGU/qJLw3YZX8l",
      "include_colab_link": true
    },
    "kernelspec": {
      "name": "python3",
      "display_name": "Python 3"
    }
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "view-in-github",
        "colab_type": "text"
      },
      "source": [
        "<a href=\"https://colab.research.google.com/github/vitaldb/examples/blob/master/asa_mortality.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
      ]
    },
    {
      "cell_type": "markdown",
      "metadata": {
        "id": "m8O6azzqdLWz"
      },
      "source": [
        "# ASA physical status classification 에 따른 사망률\n",
        "본 예제에서는 vitaldb 데이터셋으로부터 ASA physical status 에 따른 사망률을 비교해보자."
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "bwuP-YwMcLgo",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 916
        },
        "outputId": "865d6a7b-dd53-486d-9526-886a157b263f"
      },
      "source": [
        "import pandas as pd\n",
        "\n",
        "df_cases = pd.read_csv(\"https://api.vitaldb.net/cases\")  # clinical information 을 로딩\n",
        "\n",
        "print(df_cases.death_inhosp.mean() * 100)  # 평균 사망율을 출력\n",
        "\n",
        "# asa 컬럼: asa class\n",
        "# emop 컬럼: 응급 수술 여부\n",
        "# death_inhosp: 원내 사망 여부\n",
        "df_cases"
      ],
      "execution_count": 1,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "0.8922980588603632\n"
          ],
          "name": "stdout"
        },
        {
          "output_type": "execute_result",
          "data": {
            "text/html": [
              "<div>\n",
              "<style scoped>\n",
              "    .dataframe tbody tr th:only-of-type {\n",
              "        vertical-align: middle;\n",
              "    }\n",
              "\n",
              "    .dataframe tbody tr th {\n",
              "        vertical-align: top;\n",
              "    }\n",
              "\n",
              "    .dataframe thead th {\n",
              "        text-align: right;\n",
              "    }\n",
              "</style>\n",
              "<table border=\"1\" class=\"dataframe\">\n",
              "  <thead>\n",
              "    <tr style=\"text-align: right;\">\n",
              "      <th></th>\n",
              "      <th>caseid</th>\n",
              "      <th>subjectid</th>\n",
              "      <th>casestart</th>\n",
              "      <th>caseend</th>\n",
              "      <th>anestart</th>\n",
              "      <th>aneend</th>\n",
              "      <th>opstart</th>\n",
              "      <th>opend</th>\n",
              "      <th>adm</th>\n",
              "      <th>dis</th>\n",
              "      <th>icu_days</th>\n",
              "      <th>death_inhosp</th>\n",
              "      <th>age</th>\n",
              "      <th>sex</th>\n",
              "      <th>height</th>\n",
              "      <th>weight</th>\n",
              "      <th>bmi</th>\n",
              "      <th>asa</th>\n",
              "      <th>emop</th>\n",
              "      <th>department</th>\n",
              "      <th>optype</th>\n",
              "      <th>dx</th>\n",
              "      <th>opname</th>\n",
              "      <th>approach</th>\n",
              "      <th>position</th>\n",
              "      <th>ane_type</th>\n",
              "      <th>preop_htn</th>\n",
              "      <th>preop_dm</th>\n",
              "      <th>preop_ecg</th>\n",
              "      <th>preop_pft</th>\n",
              "      <th>preop_hb</th>\n",
              "      <th>preop_plt</th>\n",
              "      <th>preop_pt</th>\n",
              "      <th>preop_aptt</th>\n",
              "      <th>preop_na</th>\n",
              "      <th>preop_k</th>\n",
              "      <th>preop_gluc</th>\n",
              "      <th>preop_alb</th>\n",
              "      <th>preop_ast</th>\n",
              "      <th>preop_alt</th>\n",
              "      <th>preop_bun</th>\n",
              "      <th>preop_cr</th>\n",
              "      <th>preop_ph</th>\n",
              "      <th>preop_hco3</th>\n",
              "      <th>preop_be</th>\n",
              "      <th>preop_pao2</th>\n",
              "      <th>preop_paco2</th>\n",
              "      <th>preop_sao2</th>\n",
              "      <th>cormack</th>\n",
              "      <th>airway</th>\n",
              "      <th>tubesize</th>\n",
              "      <th>dltubesize</th>\n",
              "      <th>lmasize</th>\n",
              "      <th>iv1</th>\n",
              "      <th>iv2</th>\n",
              "      <th>aline1</th>\n",
              "      <th>aline2</th>\n",
              "      <th>cline1</th>\n",
              "      <th>cline2</th>\n",
              "      <th>intraop_ebl</th>\n",
              "      <th>intraop_uo</th>\n",
              "      <th>intraop_rbc</th>\n",
              "      <th>intraop_ffp</th>\n",
              "      <th>intraop_crystalloid</th>\n",
              "      <th>intraop_colloid</th>\n",
              "      <th>intraop_ppf</th>\n",
              "      <th>intraop_mdz</th>\n",
              "      <th>intraop_ftn</th>\n",
              "      <th>intraop_rocu</th>\n",
              "      <th>intraop_vecu</th>\n",
              "      <th>intraop_eph</th>\n",
              "      <th>intraop_phe</th>\n",
              "      <th>intraop_epi</th>\n",
              "      <th>intraop_ca</th>\n",
              "    </tr>\n",
              "  </thead>\n",
              "  <tbody>\n",
              "    <tr>\n",
              "      <th>0</th>\n",
              "      <td>1</td>\n",
              "      <td>5955</td>\n",
              "      <td>0</td>\n",
              "      <td>11520</td>\n",
              "      <td>-540</td>\n",
              "      <td>10860</td>\n",
              "      <td>-540</td>\n",
              "      <td>10380</td>\n",
              "      <td>-236220</td>\n",
              "      <td>627780</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>77.0</td>\n",
              "      <td>M</td>\n",
              "      <td>160.2</td>\n",
              "      <td>67.50</td>\n",
              "      <td>26.3</td>\n",
              "      <td>2.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Colorectal</td>\n",
              "      <td>Rectal cancer</td>\n",
              "      <td>Low anterior resection</td>\n",
              "      <td>Open</td>\n",
              "      <td>Lithotomy</td>\n",
              "      <td>General</td>\n",
              "      <td>1</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>14.1</td>\n",
              "      <td>189.0</td>\n",
              "      <td>94.0</td>\n",
              "      <td>33.2</td>\n",
              "      <td>141.0</td>\n",
              "      <td>3.1</td>\n",
              "      <td>134.0</td>\n",
              "      <td>4.3</td>\n",
              "      <td>18.0</td>\n",
              "      <td>16.0</td>\n",
              "      <td>10.0</td>\n",
              "      <td>0.82</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>300.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>350.0</td>\n",
              "      <td>0</td>\n",
              "      <td>120</td>\n",
              "      <td>0.0</td>\n",
              "      <td>100</td>\n",
              "      <td>70</td>\n",
              "      <td>0</td>\n",
              "      <td>10</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>1</th>\n",
              "      <td>2</td>\n",
              "      <td>2487</td>\n",
              "      <td>0</td>\n",
              "      <td>15720</td>\n",
              "      <td>-1020</td>\n",
              "      <td>14940</td>\n",
              "      <td>1740</td>\n",
              "      <td>14640</td>\n",
              "      <td>-221160</td>\n",
              "      <td>1506840</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>54.0</td>\n",
              "      <td>M</td>\n",
              "      <td>167.3</td>\n",
              "      <td>54.80</td>\n",
              "      <td>19.6</td>\n",
              "      <td>2.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Stomach</td>\n",
              "      <td>Advanced gastric cancer</td>\n",
              "      <td>Subtotal gastrectomy</td>\n",
              "      <td>Open</td>\n",
              "      <td>Supine</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>10.2</td>\n",
              "      <td>251.0</td>\n",
              "      <td>110.0</td>\n",
              "      <td>31.9</td>\n",
              "      <td>143.0</td>\n",
              "      <td>4.7</td>\n",
              "      <td>88.0</td>\n",
              "      <td>3.8</td>\n",
              "      <td>18.0</td>\n",
              "      <td>15.0</td>\n",
              "      <td>14.0</td>\n",
              "      <td>0.86</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>50.0</td>\n",
              "      <td>700.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>800.0</td>\n",
              "      <td>0</td>\n",
              "      <td>150</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>100</td>\n",
              "      <td>0</td>\n",
              "      <td>20</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>2</th>\n",
              "      <td>3</td>\n",
              "      <td>2861</td>\n",
              "      <td>0</td>\n",
              "      <td>4440</td>\n",
              "      <td>-540</td>\n",
              "      <td>4260</td>\n",
              "      <td>-540</td>\n",
              "      <td>3960</td>\n",
              "      <td>-218640</td>\n",
              "      <td>40560</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>62.0</td>\n",
              "      <td>M</td>\n",
              "      <td>169.1</td>\n",
              "      <td>69.70</td>\n",
              "      <td>24.4</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Biliary/Pancreas</td>\n",
              "      <td>Gallbladder stone</td>\n",
              "      <td>Cholecystectomy</td>\n",
              "      <td>Videoscopic</td>\n",
              "      <td>Reverse Trendelenburg</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>14.2</td>\n",
              "      <td>373.0</td>\n",
              "      <td>103.0</td>\n",
              "      <td>30.3</td>\n",
              "      <td>144.0</td>\n",
              "      <td>4.9</td>\n",
              "      <td>87.0</td>\n",
              "      <td>4.2</td>\n",
              "      <td>17.0</td>\n",
              "      <td>34.0</td>\n",
              "      <td>14.0</td>\n",
              "      <td>1.18</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>200.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>50</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>3</th>\n",
              "      <td>4</td>\n",
              "      <td>1903</td>\n",
              "      <td>0</td>\n",
              "      <td>21000</td>\n",
              "      <td>-720</td>\n",
              "      <td>20280</td>\n",
              "      <td>2580</td>\n",
              "      <td>18180</td>\n",
              "      <td>-201120</td>\n",
              "      <td>576480</td>\n",
              "      <td>1</td>\n",
              "      <td>0</td>\n",
              "      <td>74.0</td>\n",
              "      <td>M</td>\n",
              "      <td>160.6</td>\n",
              "      <td>53.00</td>\n",
              "      <td>20.5</td>\n",
              "      <td>2.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Stomach</td>\n",
              "      <td>Advanced gastric cancer</td>\n",
              "      <td>Distal gastrectomy</td>\n",
              "      <td>Videoscopic</td>\n",
              "      <td>Reverse Trendelenburg</td>\n",
              "      <td>General</td>\n",
              "      <td>1</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>14.4</td>\n",
              "      <td>275.0</td>\n",
              "      <td>103.0</td>\n",
              "      <td>34.5</td>\n",
              "      <td>141.0</td>\n",
              "      <td>4.2</td>\n",
              "      <td>108.0</td>\n",
              "      <td>4.1</td>\n",
              "      <td>23.0</td>\n",
              "      <td>18.0</td>\n",
              "      <td>10.0</td>\n",
              "      <td>0.96</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>270.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>2700.0</td>\n",
              "      <td>0</td>\n",
              "      <td>80</td>\n",
              "      <td>0.0</td>\n",
              "      <td>100</td>\n",
              "      <td>100</td>\n",
              "      <td>0</td>\n",
              "      <td>50</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>4</th>\n",
              "      <td>5</td>\n",
              "      <td>4416</td>\n",
              "      <td>0</td>\n",
              "      <td>21540</td>\n",
              "      <td>-960</td>\n",
              "      <td>22440</td>\n",
              "      <td>2640</td>\n",
              "      <td>21840</td>\n",
              "      <td>-67560</td>\n",
              "      <td>3734040</td>\n",
              "      <td>13</td>\n",
              "      <td>0</td>\n",
              "      <td>66.0</td>\n",
              "      <td>M</td>\n",
              "      <td>171.0</td>\n",
              "      <td>59.70</td>\n",
              "      <td>20.4</td>\n",
              "      <td>3.0</td>\n",
              "      <td>1</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Vascular</td>\n",
              "      <td>Aortic aneurysm</td>\n",
              "      <td>Aneurysmal repair</td>\n",
              "      <td>Open</td>\n",
              "      <td>Prone</td>\n",
              "      <td>General</td>\n",
              "      <td>1</td>\n",
              "      <td>0</td>\n",
              "      <td>Left anterior fascicular block</td>\n",
              "      <td>Normal</td>\n",
              "      <td>10.1</td>\n",
              "      <td>67.0</td>\n",
              "      <td>73.0</td>\n",
              "      <td>36.5</td>\n",
              "      <td>146.0</td>\n",
              "      <td>4.4</td>\n",
              "      <td>126.0</td>\n",
              "      <td>2.6</td>\n",
              "      <td>765.0</td>\n",
              "      <td>77.0</td>\n",
              "      <td>50.0</td>\n",
              "      <td>4.43</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right IJV</td>\n",
              "      <td>NaN</td>\n",
              "      <td>2600.0</td>\n",
              "      <td>1490.0</td>\n",
              "      <td>8</td>\n",
              "      <td>8</td>\n",
              "      <td>7100.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>160</td>\n",
              "      <td>0</td>\n",
              "      <td>10</td>\n",
              "      <td>900</td>\n",
              "      <td>0</td>\n",
              "      <td>2100</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>...</th>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "      <td>...</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>6383</th>\n",
              "      <td>6384</td>\n",
              "      <td>5583</td>\n",
              "      <td>0</td>\n",
              "      <td>15240</td>\n",
              "      <td>-240</td>\n",
              "      <td>15660</td>\n",
              "      <td>-240</td>\n",
              "      <td>15060</td>\n",
              "      <td>-215340</td>\n",
              "      <td>648660</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>64.0</td>\n",
              "      <td>M</td>\n",
              "      <td>161.5</td>\n",
              "      <td>63.00</td>\n",
              "      <td>24.2</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Stomach</td>\n",
              "      <td>Advanced gastric cancer</td>\n",
              "      <td>Total gastrectomy</td>\n",
              "      <td>Open</td>\n",
              "      <td>Supine</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>14.5</td>\n",
              "      <td>279.0</td>\n",
              "      <td>109.0</td>\n",
              "      <td>31.0</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>100.0</td>\n",
              "      <td>4.2</td>\n",
              "      <td>31.0</td>\n",
              "      <td>33.0</td>\n",
              "      <td>13.0</td>\n",
              "      <td>0.99</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>100.0</td>\n",
              "      <td>330.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>550.0</td>\n",
              "      <td>0</td>\n",
              "      <td>150</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>90</td>\n",
              "      <td>0</td>\n",
              "      <td>20</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>6384</th>\n",
              "      <td>6385</td>\n",
              "      <td>2278</td>\n",
              "      <td>0</td>\n",
              "      <td>20640</td>\n",
              "      <td>-540</td>\n",
              "      <td>21000</td>\n",
              "      <td>-540</td>\n",
              "      <td>19800</td>\n",
              "      <td>-225600</td>\n",
              "      <td>1675200</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>69.0</td>\n",
              "      <td>M</td>\n",
              "      <td>159.3</td>\n",
              "      <td>62.30</td>\n",
              "      <td>24.6</td>\n",
              "      <td>2.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Colorectal</td>\n",
              "      <td>Colon submucosal tumor, unknown behavior</td>\n",
              "      <td>Ultralow anterior resection</td>\n",
              "      <td>Videoscopic</td>\n",
              "      <td>Lithotomy</td>\n",
              "      <td>General</td>\n",
              "      <td>1</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>15.2</td>\n",
              "      <td>239.0</td>\n",
              "      <td>114.0</td>\n",
              "      <td>28.7</td>\n",
              "      <td>144.0</td>\n",
              "      <td>4.0</td>\n",
              "      <td>140.0</td>\n",
              "      <td>3.7</td>\n",
              "      <td>18.0</td>\n",
              "      <td>28.0</td>\n",
              "      <td>19.0</td>\n",
              "      <td>0.84</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>7.5</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right forearm</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>Right radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>100.0</td>\n",
              "      <td>250.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>2500.0</td>\n",
              "      <td>0</td>\n",
              "      <td>100</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>100</td>\n",
              "      <td>0</td>\n",
              "      <td>25</td>\n",
              "      <td>30</td>\n",
              "      <td>0</td>\n",
              "      <td>300</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>6385</th>\n",
              "      <td>6386</td>\n",
              "      <td>4045</td>\n",
              "      <td>0</td>\n",
              "      <td>19440</td>\n",
              "      <td>-660</td>\n",
              "      <td>19140</td>\n",
              "      <td>3540</td>\n",
              "      <td>18540</td>\n",
              "      <td>-200460</td>\n",
              "      <td>836340</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>61.0</td>\n",
              "      <td>F</td>\n",
              "      <td>151.7</td>\n",
              "      <td>43.25</td>\n",
              "      <td>18.8</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Stomach</td>\n",
              "      <td>Early gastric cancer</td>\n",
              "      <td>Distal gastrectomy</td>\n",
              "      <td>Videoscopic</td>\n",
              "      <td>Supine</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>12.6</td>\n",
              "      <td>276.0</td>\n",
              "      <td>97.0</td>\n",
              "      <td>29.2</td>\n",
              "      <td>140.0</td>\n",
              "      <td>4.5</td>\n",
              "      <td>103.0</td>\n",
              "      <td>4.8</td>\n",
              "      <td>20.0</td>\n",
              "      <td>19.0</td>\n",
              "      <td>15.0</td>\n",
              "      <td>0.66</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.0</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>100.0</td>\n",
              "      <td>450.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>1300.0</td>\n",
              "      <td>0</td>\n",
              "      <td>70</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>130</td>\n",
              "      <td>0</td>\n",
              "      <td>10</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>6386</th>\n",
              "      <td>6387</td>\n",
              "      <td>5230</td>\n",
              "      <td>0</td>\n",
              "      <td>12000</td>\n",
              "      <td>-540</td>\n",
              "      <td>12840</td>\n",
              "      <td>1740</td>\n",
              "      <td>12240</td>\n",
              "      <td>-227760</td>\n",
              "      <td>377040</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>24.0</td>\n",
              "      <td>F</td>\n",
              "      <td>155.7</td>\n",
              "      <td>55.50</td>\n",
              "      <td>22.9</td>\n",
              "      <td>1.0</td>\n",
              "      <td>0</td>\n",
              "      <td>General surgery</td>\n",
              "      <td>Biliary/Pancreas</td>\n",
              "      <td>Common bile duct stone without obstruction</td>\n",
              "      <td>Choledochal cyst excision</td>\n",
              "      <td>Robotic</td>\n",
              "      <td>Supine</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>12.5</td>\n",
              "      <td>214.0</td>\n",
              "      <td>90.0</td>\n",
              "      <td>32.2</td>\n",
              "      <td>142.0</td>\n",
              "      <td>3.6</td>\n",
              "      <td>95.0</td>\n",
              "      <td>4.4</td>\n",
              "      <td>16.0</td>\n",
              "      <td>10.0</td>\n",
              "      <td>7.0</td>\n",
              "      <td>0.65</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.0</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right forearm</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>Left radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>60.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>1150.0</td>\n",
              "      <td>0</td>\n",
              "      <td>120</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>50</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "    <tr>\n",
              "      <th>6387</th>\n",
              "      <td>6388</td>\n",
              "      <td>1306</td>\n",
              "      <td>0</td>\n",
              "      <td>10260</td>\n",
              "      <td>-60</td>\n",
              "      <td>10140</td>\n",
              "      <td>-60</td>\n",
              "      <td>9540</td>\n",
              "      <td>-312060</td>\n",
              "      <td>379140</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>47.0</td>\n",
              "      <td>F</td>\n",
              "      <td>150.0</td>\n",
              "      <td>51.50</td>\n",
              "      <td>22.9</td>\n",
              "      <td>2.0</td>\n",
              "      <td>0</td>\n",
              "      <td>Gynecology</td>\n",
              "      <td>Major resection</td>\n",
              "      <td>Epithelial ovarian cancer unknown stage</td>\n",
              "      <td>Debulking surgery</td>\n",
              "      <td>Open</td>\n",
              "      <td>Lithotomy</td>\n",
              "      <td>General</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>Normal Sinus Rhythm</td>\n",
              "      <td>Normal</td>\n",
              "      <td>8.6</td>\n",
              "      <td>549.0</td>\n",
              "      <td>64.0</td>\n",
              "      <td>34.6</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>124.0</td>\n",
              "      <td>3.4</td>\n",
              "      <td>17.0</td>\n",
              "      <td>7.0</td>\n",
              "      <td>8.0</td>\n",
              "      <td>0.64</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>I</td>\n",
              "      <td>Oral</td>\n",
              "      <td>7.0</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Left forearm</td>\n",
              "      <td>Right hand</td>\n",
              "      <td>Left radial</td>\n",
              "      <td>NaN</td>\n",
              "      <td>Right IJV</td>\n",
              "      <td>NaN</td>\n",
              "      <td>NaN</td>\n",
              "      <td>800.0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>1800.0</td>\n",
              "      <td>500</td>\n",
              "      <td>120</td>\n",
              "      <td>0.0</td>\n",
              "      <td>0</td>\n",
              "      <td>90</td>\n",
              "      <td>0</td>\n",
              "      <td>20</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "      <td>0</td>\n",
              "    </tr>\n",
              "  </tbody>\n",
              "</table>\n",
              "<p>6388 rows × 74 columns</p>\n",
              "</div>"
            ],
            "text/plain": [
              "      caseid  subjectid  casestart  ...  intraop_phe  intraop_epi  intraop_ca\n",
              "0          1       5955          0  ...            0            0           0\n",
              "1          2       2487          0  ...            0            0           0\n",
              "2          3       2861          0  ...            0            0           0\n",
              "3          4       1903          0  ...            0            0           0\n",
              "4          5       4416          0  ...          900            0        2100\n",
              "...      ...        ...        ...  ...          ...          ...         ...\n",
              "6383    6384       5583          0  ...            0            0           0\n",
              "6384    6385       2278          0  ...           30            0         300\n",
              "6385    6386       4045          0  ...            0            0           0\n",
              "6386    6387       5230          0  ...            0            0           0\n",
              "6387    6388       1306          0  ...            0            0           0\n",
              "\n",
              "[6388 rows x 74 columns]"
            ]
          },
          "metadata": {},
          "execution_count": 1
        }
      ]
    },
    {
      "cell_type": "code",
      "metadata": {
        "id": "JcPTJzW6cgM8",
        "colab": {
          "base_uri": "https://localhost:8080/",
          "height": 319
        },
        "outputId": "3f820f95-fb5b-4c57-8b91-c38b58bc5c4d"
      },
      "source": [
        "# ASA class 에 따라 응급 및 정규 수술에서의 사망율을 구해보자\n",
        "el_y = [df_cases[(df_cases['asa'] == asa) & ~df_cases['emop']]['death_inhosp'].mean() * 100 for asa in range(1,5)]\n",
        "em_y = [df_cases[(df_cases['asa'] == asa) & df_cases['emop']]['death_inhosp'].mean() * 100 for asa in range(1,5)]\n",
        "print(el_y)\n",
        "print(em_y)\n",
        "\n",
        "# 그림을 그림\n",
        "import numpy as np\n",
        "import matplotlib.pyplot as plt\n",
        "fig, ax = plt.subplots()\n",
        "w = 0.35\n",
        "x = np.arange(1,5)\n",
        "ax.bar(x - w/2, el_y, w, label='Elective')\n",
        "ax.bar(x + w/2, em_y, w, label='Emergency')\n",
        "ax.set_ylabel('Mortality (%)')\n",
        "ax.set_xticks(x)\n",
        "ax.legend()\n",
        "plt"
      ],
      "execution_count": 7,
      "outputs": [
        {
          "output_type": "stream",
          "text": [
            "[0.5451241671714113, 0.2991325157044571, 1.3671875, 18.181818181818183]\n",
            "[0.0, 1.9662921348314606, 5.2356020942408374, 27.027027027027028]\n"
          ],
          "name": "stdout"
        },
        {
          "output_type": "execute_result",
          "data": {
            "text/plain": [
              "<module 'matplotlib.pyplot' from '/usr/local/lib/python3.7/dist-packages/matplotlib/pyplot.py'>"
            ]
          },
          "metadata": {},
          "execution_count": 7
        },
        {
          "output_type": "display_data",
          "data": {
            "image/png": "iVBORw0KGgoAAAANSUhEUgAAAX4AAAD4CAYAAADrRI2NAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4yLjIsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy+WH4yJAAAV8ElEQVR4nO3dfZBV9Z3n8fcXgrYKYlTWcYPYxDFsHJFWGxfEpNQMwhDTxlEWnfi4cUl8iMa1ahbcmqiRyZKEYTaT2hqXjE8zPrGJsXxKsoiPpUkQcJqooEGzpIJhBCUiraKg3/2jLxRB+tLAPfd6+7xfVbf6nt859/y+far4cPp3z/mdyEwkSeXRr9EFSJLqy+CXpJIx+CWpZAx+SSoZg1+SSuZjjS6gNw488MBsbW1tdBmS1FQWL178WmYO2ba9KYK/tbWVRYsWNboMSWoqEfHb7bU71CNJJWPwS1LJGPySVDJNMca/PRs3bmTlypVs2LCh0aX0eS0tLQwdOpQBAwY0uhRJNdC0wb9y5UoGDRpEa2srEdHocvqszOT1119n5cqVDB8+vNHlSKqBph3q2bBhAwccc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NramYR0T8i/jUiHmh0LbvL4K+tW4CJjS6iD9gEXJWZRwBjgEsj4ogG19SM3gVOzsxRQBswMSLGNLimZnYFsKzRRdSCwV9DmfkEsLbRdTS7zFyVmc9U3q+n+x/bJxpbVfPJbl2VxQGVl1dz7IKIGAp8HvinRtdSCwa/PtIiohU4GljQ2EqaU2V4ohNYDTyUmR7HXfM/gb8GPmh0IbVg8OsjKyIGAncDX8/MNxtdTzPKzPczs43uO+SPi4gjG11Ts4mIU4HVmbm40bXUisGvj6SIGEB36N+emT9udD3NLjPfAB7F76B2xTigIyJW0D2b8MkRcVtjS9o9Br8+ciIigBuBZZk5u9H1NKuIGBIR+1Xe70X3MzBeaGxVzSczp2fm0MxspXuKmUcy85wGl7VbDP4aiog7gV8AIyJiZUR8udE1NalxwLl0n1l1Vl6TGl1UEzoYeDQifkX3HFkPZWbTX4qo3eeUDZJUMp7xS1LJGPySVDIGvySVjMEvSSVj8EtSyRj8klQyBr8klcz/BwHWYikGY/UGAAAAAElFTkSuQmCC\n",
            "text/plain": [
              "<Figure size 432x288 with 1 Axes>"
            ]
          },
          "metadata": {
            "needs_background": "light"
          }
        }
      ]
    }
  ]
}